package com.linkdood.app.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 上传的附件信息
 * @author YunJ
 */
@Data
@TableName("attachment")
public class Attachment {

    @TableId
    private String id;

    private String fileUrl;
    private String filename;
    private Long fileSize;
    private String filePath;
    private String accountId;
    /**
     * 附件状态：未下载，下载成功，下载失败
     */
    private String status;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
